package com.xiang.sql.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息 数据实体
 * 
 * @author mac-xiang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`msg`", autoResultMap = true)
@ApiModel(value = "消息 对象", description = "消息")
public class Msg implements Serializable {

  private static final long serialVersionUID = 1L;
  /** id */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  public String id;

  /** 创建时间 */
  @TableField(value = "`create_time`", fill = FieldFill.INSERT)
  public Long createTime;

  /** 阅读时间 */
  @TableField(value = "`read_time`")
  public Long readTime;

  /** 创建者 */
  @TableField(value = "`create`", fill = FieldFill.INSERT)
  public String create;

  /** 创建者删除 */
  @TableField(value = "`cd`")
  public Long cd;

  /** 接收者 */
  @TableField(value = "`target`", fill = FieldFill.INSERT)
  public String target;

  /** 接收者删除 */
  @TableField(value = "`td`")
  public Long td;

  /** 消息类型 */
  @TableField(value = "`type`")
  public String type;

  /** 内容 */
  @TableField(value = "`data`", fill = FieldFill.INSERT)
  public String data;

  public Msg() {
  }
}